package com.ems.dao.Invigilate.room;

import com.ems.pojo.Invigilate.room.TestRoom;
import com.ems.pojo.user.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Auther: 伟伟
 * @Date: 2020/2/18
 * @Description: 描述
 * @Version: 1.0
 */
public interface TestRoomDao {
    public void addTestRoom(TestRoom testRoom);

    public void deleteTestRoom(int id);

    public void updateTestRoom(TestRoom testRoom);

    public List<TestRoom> selectTestRoom(@Param("tr_name") String tr_name, @Param("id") int id);

    public List<TestRoom> selectUnTestRoom(@Param("tr_name") String tr_name, @Param("id") int id);

    public List<TestRoom> selectAllTestRoomById(User user);

    public TestRoom selectTestRoomById(TestRoom testRoom);

    public TestRoom getTestRoomByPwd(TestRoom testRoom);

    public List<TestRoom> queryTestRoomById(int id);
}
